<h2>TODOList</h2>
<div class="container"><input type="text" id="inputText" (keydown)="keydownhundle($event)"
        [(ngModel)]="inputValue"><button (click)="addList()">添加</button>
    <hr>
    <ul>
        <li *ngFor="let item of TodoList;let key=index" (click)="deleteByIndex(key)">
            {{ item }}</li>
    </ul>
</div>